import {ScaleBarUtil} from "./types/ScaleBarUtil";
import {SketchUtil} from "./types/SketchUtil";
import {OverViewUtil} from "./types/OverviewUtil";
import {Measurement} from "./types/Measurement";
import {Fullscreen} from "./types/Fullscreen";

/**
 * TODO 感觉没必要存在，由于过于简单，开发中直接查看API即可
 */
export class ManageWidget{
  constructor(manageView,manageLayer){
    this._scaleBarUtil = new ScaleBarUtil(manageView);
    this._sketchUtil = new SketchUtil(manageView,manageLayer);
    this._overViewUtil = new OverViewUtil(manageView);
    this._measurement= new Measurement(manageView);
    this._fullscreen= new Fullscreen(manageView);
  }
  addOverview(key,mapConfig,styles){
    return this._overViewUtil.add(key,mapConfig,styles)
  }
  switchOverview(key,visible){
    this._overViewUtil.switchOverview(key,visible)
  }
  removeOverview(key){
    this._overViewUtil.remove(key)
  }
  addScaleBar(position){
    this._scaleBarUtil.add(position);
  }
  removeScaleBar(){
    this._scaleBarUtil.remove();
  }
  addSketch(position){
    this._sketchUtil.add(position);
  }
  removeSketch(){
    this._sketchUtil.remove();
  }
  addMeasurement(position){
    this._measurement.add(position)
  }
  removeMeasurement(){
    this._measurement.remove();
  }
  addFullscreen(position){
    this._fullscreen.add(position)
  }
  removeFullscreen(){
    this._fullscreen.remove();
  }

}
